						 /**************************/
						/******Creator is Fadzz******/
						/*Javascript editor is fadzz*/
						 /**************************/
function ModeChecked(pfadso){
var act1 = document.getElementById('epic').style;
var act2 = document.getElementById('eemb').style;
var act3 = document.getElementById('etex').style;
var mode = pfadso.value;
if(mode.search(' ')>0||mode.length<=0||mode.search(/http:\/\//gi)<0&&mode.search(/https:\/\//gi)<0&&mode.search(/data:/gi)<0){
act3.color='#0f0';
document.getElementById("oilsizeint").innerHTML='Div-Size';
}else{
act3.color='';
}
if(mode.search(' ')<1&&(mode.search(/http:\/\//gi)>=0&&mode.search(/http:\/\//gi)<=1||mode.search(/https:\/\//gi)>=0&&mode.search(/https:\/\//gi)<=1)&&mode.search(/.swf/gi)>5){
act2.color='#0f0';
document.getElementById("oilsizeint").innerHTML='Embed-Size';
}else{
act2.color='';
}
if(mode.search(' ')<1&&(mode.search(/http:\/\//gi)>=0&&mode.search(/http:\/\//gi)<=1||mode.search(/https:\/\//gi)>=0&&mode.search(/https:\/\//gi)<=1||mode.search(/data:/gi)>=0&&mode.search(/data:/gi)<=1)&&mode.search(/.swf/gi)<mode.length-4){
act1.color='#0f0';
document.getElementById("oilsizeint").innerHTML='Picture-Size';
}else{
act1.color='';
}
}
function httponlkfas(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode == 32){
			status = "code hex only..."
			return false
		}
		status = ""
		return true
}
function checkIt(evt) {
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode >= 71 && charCode <= 90) {
			status = "code hex only..."
			return false
		}
		status = ""
		return true
}
function CustomizeForm(){
//Banner&Code
var sourcenow = document.getElementsByName('iputsource')[0].value;
var solowidth = document.getElementsByName('inputwidth')[0].value;
var soloheigh = document.getElementsByName('inputheigh')[0].value;
var soroklink = document.getElementsByName('putyoururl')[0].value;
var trgetlink = document.getElementsByName('linktarget')[0].value;
var backbaner = document.getElementsByName('bannerback')[0].value;
var titlepost = document.getElementsByName('infortitle')[0].value;
var bdrbnsize = document.getElementsByName('bnbrdrsize')[0].value;
var bdrbntype = document.getElementsByName('bnbrdrtype')[0].value;
var bdrbncolr = document.getElementsByName('bnbrdrcolr')[0].value;
//Textarea Setting
var textwidth = document.getElementsByName('formywidth')[0].value;
var textheigh = document.getElementsByName('formyheigh')[0].value;
var textbackd = document.getElementsByName('bgtextarea')[0].value;
var bordtsize = document.getElementsByName('bordersize')[0].value;
var bordttype = document.getElementsByName('bordertype')[0].value;
var bordtcolr = document.getElementsByName('brdercolor')[0].value;
var chekfocus = document.getElementById('checkonclick').checked;
var autointal = document.getElementById('cautoinstall').checked;
var targetcek = document.getElementById('onchecking').checked;
//textarea
var txtarea = document.getElementById('gaoks');
//other
var txt1 = '';
var txt2 = '';
var txt3 = "src=\""+sourcenow+"\"";
var txt4 = '';
var txt5 = backbaner;
var txt6 = '';
var txt7 = textbackd;
var txt8 = '';
var txt9 = '';
var txt10= '';
var txt11= '';
if(targetcek){
txt11= " target=\""+trgetlink+"\"";
}
if(autointal){
txt8="<form action=\"http://beta.blogger.com/add-widget\" target=\"_new\" method=\"POST\">";
txt9="<input value=\"click to auto install\" class=\"button\" name=\"go\" type=\"submit\">";
txt10="</form>";
}
if(chekfocus){
txt6=" onclick=\"this.focus();this.select();\"";
}
if(backbaner.search('http')>=0){
txt5='url(\''+backbaner+'\')';
}
if(textbackd.search('http')>=0){
txt7='url(\''+textbackd+'\')';
}
if(sourcenow.search(' ')>0||sourcenow.length<=0||sourcenow.search(/http:\/\//gi)<0&&sourcenow.search(/https:\/\//gi)<0&&sourcenow.search(/data:/gi)<0){
txt1='div';
txt3='';
txt4='\n'+sourcenow+'\n';
}
if(sourcenow.search(' ')<1&&(sourcenow.search(/http:\/\//gi)>=0&&sourcenow.search(/http:\/\//gi)<=1||sourcenow.search(/https:\/\//gi)>=0&&sourcenow.search(/https:\/\//gi)<=1)&&sourcenow.search(/.swf/gi)>5){
txt1="embed";
txt2=" type=\"application/x-shockwave-flash\"";
}
if(sourcenow.search(' ')<1&&(sourcenow.search(/http:\/\//gi)>=0&&sourcenow.search(/http:\/\//gi)<=1||sourcenow.search(/https:\/\//gi)>=0&&sourcenow.search(/https:\/\//gi)<=1||sourcenow.search(/data:/gi)>=0&&sourcenow.search(/data:/gi)<=1)&&sourcenow.search(/.swf/gi)<sourcenow.length-4){
txt1='img';
}
txtarea.value = "\<!--Start Exchange Banner Box--\>\n"+txt8+"<center><a href=\""+soroklink+"\""+txt11+" title=\""+titlepost.replace(/\"/gi, "&quot;").replace(/\>/gi, "&gt;").replace(/\</gi, "&lt;")+"\">";
txtarea.value = txtarea.value + "<"+txt1+" "+txt3+""+txt2+" style=\"width: "+solowidth+"px;height:"+soloheigh+"px;background: "+txt5+";border:"+bdrbnsize+"px "+bdrbntype+" "+bdrbncolr+";\">"+txt4+"</"+txt1+"></a>";
txtarea.value = txtarea.value + "<br><textarea"+txt6+" name=\"widget.content\" style=\"background:"+txt7+";width: "+textwidth+"px;height: "+textheigh+"px;border:"+bordtsize+"px "+bordttype+" "+bordtcolr+";\">";
txtarea.value = txtarea.value + "<center><a href=\""+soroklink+"\""+txt11+" title=\""+titlepost.replace(/\"/gi, "&amp;quot;").replace(/\>/gi, "&amp;gt;").replace(/\</gi, "&amp;lt;")+"\">";
txtarea.value = txtarea.value + "<"+txt1+" "+txt3+""+txt2+" style=\"width: "+solowidth+"px;height:"+soloheigh+"px;background: "+txt5+";border:"+bdrbnsize+"px "+bdrbntype+" "+bdrbncolr+";\">"+txt4+"</"+txt1+"></a></textarea><br>"+txt9+"</center>"+txt10+"\n\<!--END Exchange Banner Box--\>";
}
function PreViewDulu(){
//Banner&Code
var sourcenow = document.getElementsByName('iputsource')[0].value;
var solowidth = document.getElementsByName('inputwidth')[0].value;
var soloheigh = document.getElementsByName('inputheigh')[0].value;
var soroklink = document.getElementsByName('putyoururl')[0].value;
var trgetlink = document.getElementsByName('linktarget')[0].value;
var backbaner = document.getElementsByName('bannerback')[0].value;
var titlepost = document.getElementsByName('infortitle')[0].value;
var bdrbnsize = document.getElementsByName('bnbrdrsize')[0].value;
var bdrbntype = document.getElementsByName('bnbrdrtype')[0].value;
var bdrbncolr = document.getElementsByName('bnbrdrcolr')[0].value;
//Textarea Setting
var textwidth = document.getElementsByName('formywidth')[0].value;
var textheigh = document.getElementsByName('formyheigh')[0].value;
var textbackd = document.getElementsByName('bgtextarea')[0].value;
var bordtsize = document.getElementsByName('bordersize')[0].value;
var bordttype = document.getElementsByName('bordertype')[0].value;
var bordtcolr = document.getElementsByName('brdercolor')[0].value;
var chekfocus = document.getElementById('checkonclick').checked;
var autointal = document.getElementById('cautoinstall').checked;
var targetcek = document.getElementById('onchecking').checked;
//textarea
var previewdv = document.getElementById('divpreview');
//other
var txt1 = '';
var txt2 = '';
var txt3 = "src=\""+sourcenow+"\"";
var txt4 = '';
var txt5 = backbaner;
var txt6 = '';
var txt7 = textbackd;
var txt8 = '';
var txt9 = '';
var txt10= '';
var txt11= '';
if(targetcek){
txt11= " target=\""+trgetlink+"\"";
}
if(autointal){
txt8="<form action=\"http://beta.blogger.com/add-widget\" target=\"_new\" method=\"POST\">";
txt9="<input value=\"click to auto install\" class=\"button\" name=\"go\" type=\"submit\">";
txt10="</form>"; 
}
if(chekfocus){
txt6=" onclick=\"this.focus();this.select();\"";
}
if(backbaner.search('http')>=0){
txt5='url(\''+backbaner+'\')';
}
if(textbackd.search('http')>=0){
txt7='url(\''+textbackd+'\')';
}
if(sourcenow.search(' ')>0||sourcenow.length<=0||sourcenow.search(/http:\/\//gi)<0&&sourcenow.search(/https:\/\//gi)<0&&sourcenow.search(/data:/gi)<0){
txt1='div';
txt3='';
txt4=''+sourcenow+'';
}
if(sourcenow.search(' ')<1&&(sourcenow.search(/http:\/\//gi)>=0&&sourcenow.search(/http:\/\//gi)<=1||sourcenow.search(/https:\/\//gi)>=0&&sourcenow.search(/https:\/\//gi)<=1)&&sourcenow.search(/.swf/gi)>5){
txt1="embed";
txt2=" type=\"application/x-shockwave-flash\"";
}
if(sourcenow.search(' ')<1&&(sourcenow.search(/http:\/\//gi)>=0&&sourcenow.search(/http:\/\//gi)<=1||sourcenow.search(/https:\/\//gi)>=0&&sourcenow.search(/https:\/\//gi)<=1||sourcenow.search(/data:/gi)>=0&&sourcenow.search(/data:/gi)<=1)&&sourcenow.search(/.swf/gi)<sourcenow.length-4){
txt1='img';
}
previewdv.innerHTML = txt8 +"<center style=\"display:inline;\"><a href=\""+soroklink+"\""+txt11+" title=\""+titlepost.replace(/\"/gi, "&quot;").replace(/\>/gi, "&gt;").replace(/\</gi, "&lt;")+"\"><"+txt1+" "+txt3+""+txt2+" style=\"width: "+solowidth+"px;height:"+soloheigh+"px;background: "+txt5+";border:"+bdrbnsize+"px "+bdrbntype+" "+bdrbncolr+";\">"+txt4+"</"+txt1+"></a><br><textarea"+txt6+" name=\"widget.content\" style=\"background:"+txt7+";width: "+textwidth+"px;height: "+textheigh+"px;border:"+bordtsize+"px "+bordttype+" "+bordtcolr+";\"><center><a href=\""+soroklink+"\""+txt11+" title=\""+titlepost.replace(/\"/gi, "&amp;quot;").replace(/\>/gi, "&amp;gt;").replace(/\</gi, "&amp;lt;")+"\"><"+txt1+" "+txt3+""+txt2+" style=\"width: "+solowidth+"px;height:"+soloheigh+"px;background: "+txt5+";border:"+bdrbnsize+"px "+bdrbntype+" "+bdrbncolr+";\">"+txt4+"</"+txt1+"></a></textarea><br>"+txt9+"</center>"+txt10;

}
function CheckIfExchangeBoxMaker(asdf){
	if((document.getElementsByName('iputsource')[0].value.length==0||document.getElementsByName('iputsource')[0].value=='You can use http/https/data/text')||(document.getElementsByName('putyoururl')[0].value.length==0||document.getElementsByName('putyoururl')[0].value=='put your url')){
		if(document.getElementsByName('iputsource')[0].value.length==0||document.getElementsByName('iputsource')[0].value=='You can use http/https/data/text'){
			document.getElementById('errorpic').style.display='';
		}else{
			document.getElementById('errorpic').style.display='none';
		}
		if(document.getElementsByName('putyoururl')[0].value.length==0||document.getElementsByName('putyoururl')[0].value=='put your url'){
			document.getElementById('errorurl').style.display='';
		}else{
			document.getElementById('errorurl').style.display='none';
		}
		return;
	}else{
		document.getElementById('errorpic').style.display='none';
		document.getElementById('errorurl').style.display='none';
	}
	if(asdf=='hehe'){
		document.getElementById('gaoks').style.display='';
	}
	CustomizeForm();
	PreViewDulu();
	document.getElementById('omgpreview').style.display='';
}
function areYouSure() {
if(document.getElementsByName('iputsource')[0].value.length!=0&&document.getElementsByName('iputsource')[0].value!='You can use http/https/data/text' || document.getElementsByName('putyoururl')[0].value.length!=0&&document.getElementsByName('putyoururl')[0].value!='put your url'){
return "Are you sure you want to leave the current page?";
}
}
window.onbeforeunload = areYouSure;